class Yhk():
    def __init__(self,card,password,name,yue):
        self.card=card
        self.passwor=password
        self.name=name
        self.yue=yue

class Bhk(Yhk):
    def quk (self,a):
        print("取款金额:%d" %(a))
        self.yue-=a
        print("取款成功,您的余额为:%d" %(self.yue))
    def zqian (self,b,c):
        print("转账金额:%d" %(b))
        self.yue-=b
        print("请输入卡号:%d" %(c))
        print("转账成功,您的余额为:%d" %(self.yue))
class Thk(Yhk):
    def quq (self,f):

        print("取款要加收2元手续费")
        print("取款金额%d" %(f))
        self.yue-=f+2
        print("取款成功,余额为:%d" %(self.yue))

p=Bhk(123456,345,"kk",1000)
j=Thk(678900,345,"ll",2000)
p.quk(100)
p.zqian(200,123456)
j.quq(300)